package com.aliyun.messagemgt.application.service.Impl;

import com.aliyun.messagemgt.common.dto.send.PushChannelInfo;
import com.aliyun.messagemgt.application.service.PushChannelService;
import com.aliyun.messagemgt.domain.repository.PushChannelRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created with IDEA
 *
 * @author:zhangxingxing 0027012120
 * @date:2019/1/25
 * @time:15:55
 */
@Service
public class PushChannelServiceImpl implements PushChannelService {

    @Autowired
    private PushChannelRepository pushChannelRepository;

    @Override
    public List<PushChannelInfo> listChannelById(List<Integer> channelIds) {
        return pushChannelRepository.listChannelById(channelIds);
    }

    @Override
    public List<PushChannelInfo> listAllChannel() {
        return pushChannelRepository.listAllChannel();
    }

    @Override
    public PushChannelInfo queryPushChannelInfoByChannelId(Integer channelId) {
        return pushChannelRepository.queryPushChannelInfoByChannelId(channelId);
    }
}
